Conference article

A Method to Import an FMU to a Hardware Description Language

Min Zhang
Synopsys Inc., USA

Download articlehttp://dx.doi.org/10.3384/ecp18154147

Published in: Proceedings of The American Modelica Conference 2018, October 9-10, Somberg Conference Center, Cambridge MA, USA

Linköping Electronic Conference Proceedings 154:16, p. 147-156

Show more +

Published: 2019-02-26

ISBN: 978-91-7685-148-7

ISSN: 1650-3686 (print), 1650-3740 (online)

Abstract

In this paper, a new method of importing FMUs (Functional Mock-up Unit) [1] to a multi-domain, mixed-mode simulator is presented. Supporting FMI (Functional Mock-up Interface) 2.0 for Model Exchange by converting an FMU to an HDL (Hardware Description Language) wrapper model not only takes advantage of the existing simulator capabilities, but also avoids a significant amount of work in the core of the simulator. The selected HDL in this paper is MAST which is used in both Saber and SaberHDL simulators [2][7]. To make the FMU import process easier, a general conversion utility, FMU2MAST, was developed which converts an FMU to a MAST model automatically. Two examples, bouncing ball and motor drive system are presented. With these two examples, three techniques used in this method are discussed: Accurate event detection in a variable time-step integration algorithm; Re-initialization of a state variable in MAST; and solving DAE (Differential Algebraic Equation) of a coupling FMUs system. This new FMU import method has been proved a success with 44 examples exported from five different tools.

Keywords

FMI, FMU, HDL, MAST, Modeling, Simulation, Saber, SaberHDL, DAE

References

No references available

Citations in Crossref